import { deepClone } from '../utils/index'

const cacheList = []

export function getCache() {
  return deepClone(cacheList)
}

export function setCache(data) {
  cacheList.push(data)
}

export function clearCache() {
  cacheList.length = 0
  console.log('清空缓存', cacheList)
}
